package com.xb.loan.util.qrtz.listener;

import com.xb.loan.util.log.DefaultLoggerFacotry;
import com.xb.loan.util.qrtz.task.Task;
import org.slf4j.Logger;

/**
 * 
 * 监听任务执行   输出日志
 * @author wuql
 */
public class TaskLogListener implements TaskListener {
    protected Logger logger = DefaultLoggerFacotry.getLogger(getClass());

    public void taskCreate(Task task) {
        logger.info("taskCreate taskId=" + task.getTaskEntityId());
    }

    public void taskToBeExecuted(Task task) {
        logger.info("taskToBeExecuted taskId=" + task.getTaskEntityId());
    }

    public void taskExecutionVetoed(Task task) {
        logger.info("taskExecutionVetoed task="+task.getTaskEntityId());
    }

    public void taskWasExecuted(Task task) {

        logger.info("taskWasExecuted taskId=" + task.getTaskEntityId());
    }

}
